package spring.boot.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import spring.boot.po.AgentUserEntity;
import spring.boot.po.Message;
import spring.boot.po.Messages;
import spring.boot.po.UserHomeEntity;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface LoginMapper {
	UserHomeEntity getpwdbyname(Integer uid);
	UserHomeEntity getnamebyid(Integer id);
	AgentUserEntity getagent(Integer aid);

    void savemsgs(@Param(value = "msg") ArrayList<Message> msgs);

    List<Messages> selmsgs(@Param("to") String to, @Param("from") String from);
}
